<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>课程综合管理系统</title>
</head>

<body>
<?php
$type=$_COOKIE['type'];
if ($type!=null){
	echo "Have Loged In.";
}
else {
?>
<form id="form1" name="form1" method="post" action="login_2.php">
  <p>
    <label>ID号
      <input type="text" name="id" id="id" />
    </label>
  </p>
  <p>
    <label>密码
      <input type="password" name="pass" id="pass" />
    </label>
  </p>
  <p>
    <label>类型
      <select name="type" id="type">
        <option value="0">学生</option>
        <option value="1">教师</option>
        <option value="2">管理员</option>
      </select>
    </label>
  </p>
  <p>
    <label>
      <input type="submit" name="submit" id="submit" value="提交" />
    </label>
    <label>
      <input type="reset" name="reset" id="reset" value="重置" />
    </label>
  </p>
</form>
<?php
}
?>
</body>
</html>
